package com.wuyoucar.mapper;

import com.wuyoucar.entity.TUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@Mapper
public interface TUserMapper {


    TUser getUser(TUser tUser);

    TUser getUserByTel(@Param("usertel") String usertel);

    int addUserByTel(@Param("usertel") String usertel);

    TUser selectByName(@Param("username")String username);

    int addUserByName(@Param("username")String username,
                      @Param("password")String password);
}
